<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	if(session.getAttribute("admin")!=null)
	response.sendRedirect(basePath+"sys/showall");
%>
<!DOCTYPE>
<html>
<head>

<title>管理员登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>css/Wopop_files/style_log.css">
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>css/Wopop_files/style.css">
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>css/Wopop_files/userpanel.css">
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>css/Wopop_files/jquery.ui.all.css">


</head>
<body class="login" mycollectionplug="bind">

	<div class="login_m">
		<div class="login_logo">
			<img src="<%=basePath%>css/Wopop_files/logo.png" width="196"
				height="46">
		</div>
		<div class="login_boder">
			

			<div class="login_padding" id="login_model">
			
					<a href="<%=basePath%>showstudentlogin">学生登录</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				&nbsp;&nbsp;&nbsp;
				<a href="<%=basePath%>showteacherlogin">教师登录</a> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
				<a href="<%=basePath%>showadminlogin"><span style="color: red;">管理员登录</span> </a>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
				<h2><span style="color: red;">${message }</span></h2>
				<form action="<%=basePath%>admin/login" method="post">
				<h2>用户名</h2>
				<label> <input type="text"  name="name" id="username"
					class="txt_input txt_input2"
					onfocus="if (value ==&#39;Your name&#39;){value =&#39;&#39;}"
					onblur="if (value ==&#39;&#39;){value=&#39;Your name&#39;}"
					value="Your name"></label>
				<h2>密码</h2>
				<label> <input type="password" name="pass"
					id="userpwd" class="txt_input"
					onfocus="if (value ==&#39;******&#39;){value =&#39;&#39;}"
					onblur="if (value ==&#39;&#39;){value=&#39;******&#39;}"
					value="******"></label>

				<div class="rem_sub">
					<label> <input type="submit" class="sub_button"
						 id="button" value="SIGN-IN" style="opacity: 0.7;"></label>
				</div>
				</form>
			</div>


			<!--login_padding  Sign up end-->
		</div>
		<!--login_boder end-->
	</div>
	<!--login_m end-->

<%-- ${errorinfo }
	<form action="<%=basePath%>admin/login" method="post">
		name:<input type="text" name="name" value="jzs">
		<br>
		pass:<input type="password" value="951020" name="pass">
		<input type="submit" value="提交">
	</form>  --%>
	
	
</body>
</html>